<html>
<head>
    <title>
        Test Network Ruby Call
    </title>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../../js/gestalt.js" type="text/javascript"></script>
</head>
<body>
      
<!-- This isn't a part of the sample, but a link back to the Gestalt site -->
<div id="upsell" style="color:#fff; font-size: 13px; font-family:'Lucida Grande','Lucida Sans Unicode',Helvetica,Arial,Lucida,Verdana,sans-serif; margin-bottom: 30px;">
    <a href="http://www.visitmix.com/labs/gestalt/samples.html" style="background-color: #000; color: #fff; display: block; text-decoration: none;" onmouseover="this.style.color='#000'; this.style.background='#ccc'" onmouseout="this.style.color='#fff'; this.style.background='#000'">
		<span style="display:block; padding: 8px; text-align:center;">&laquo; Check out other samples on the Gestalt web site</span>
	</a>
</div>

<!-- If you link to a XAML file, you'll be able to view the page correctly only through a server 
     (e.g. apache or IIS) because of security sandbox reasons. To enable running the file locally 
     place the XAML inline directly inside the xml element -->

<script language="ruby">
include System::Net

cli = WebClient.new()
cli.DownloadStringCompleted do |s,e|
    window.alert e.Result
end

uri = System::Uri.new "http://localhost:23457/samples/_big.xaml/Crystal.xaml"

cli.DownloadStringAsync uri

</script>

</body>
</html>
    